<?php#[商品评论]class GoodscommentController extends AcommonController{    public function init() {        $this->model = new goodscommentModel();        $this->table = 'goods_comment';        $this->primaryKey = 'id';        parent::init();    }	public function indexAction($flag=FALSE){        $keywords = $this->get('keywords', '');        $this->model = $this->model->with(['member', 'goods'])->whereHas('goods', function ($goodsWhere) use($keywords){            if(!empty($keywords)){                $goodsWhere->where('title', 'like', "%{$keywords}%")->orWhere('goods_id',$keywords);            }        });		parent::indexAction();	}    public function editAction($flag=FALSE){        $this->model = $this->model->with(['member', 'goods'])->whereHas('goods');        parent::editAction();    }}